package com.qfjy.homework.ZhangDaXing;

public abstract class Game {
    abstract void initPlay();
    abstract void startPlay();
    abstract void endPlay();

    public final void play(){
        //游戏初始化
        initPlay();
        //开始游戏
        startPlay();
        //结束游戏
        endPlay();
    }

}
